﻿<div ng-controller="simpleEditCtrl">
    <form class="form-horizontal" role="form" id="addForm" name="addForm">
        <div class="form-group" ng-class="{'has-error' : (!addForm.$valid && savedPressed) === true}">
            <div class="col-xs-10">
                <input type="text" class="form-control" id="Message" name="Message" ng-focus-when="true" ng-bind="item.Message" ng-model="item.Message" ng-enter="save()" required ng-maxlength="250" />
            </div>
            <div class="col-xs-2 text-right">
                <button class="btn btn-default" ng-click="toggleFilter()" ng-class="{'btn-primary' : isFilterVisible == true}" title="Filter"><span class="glyphicon glyphicon-filter"></span></button>
                <ng-download-button class="btn btn-default" url="api/itemapi/export" method="POST" jsondata="exportQuery" title="Export XLS"><span class="glyphicon glyphicon-floppy-save"></span></ng-download-button>
            </div>
        </div>
    </form>    
</div>